using Tanks.Step2;
using Unity.Entities;
using Unity.Mathematics;
using Unity.Rendering;

namespace Tanks.Step4
{
    public readonly partial struct TurretAspect : IAspect
    {
        readonly RefRO<Turret> mTurret;

        readonly RefRO<URPMaterialPropertyBaseColor> mBaseColor;

        public Entity CannonBallSpawn => mTurret.ValueRO.CannonBallSpawn;
        
        public Entity CannonBallPrefab => mTurret.ValueRO.CannonBallPrefab;

        public float4 Color => mBaseColor.ValueRO.Value;
    }
}